<template>
	<view class="assoc_img">
		<view class="w700 auto"><rich-text :nodes="content"></rich-text></view>
	</view>
</template>

<script>
import { xiehuiDetail } from '@/config/api.js';
export default {
	data() {
		return {
			content:null,
		}
	},
	onLoad(option) {
		this.getAssocDetail(option)
	},
	methods: {
		//获取图文
		getAssocDetail(e){
			xiehuiDetail({id:e.id}).then(res=>{
				console.log(res);
				this.content = res.content.replace(/\<img/gi, '<img style="max-width:100%"');
			})
		}
	}
}
</script>

<style scoped lang="scss">
	.assoc_img{
			
	}

	// }
	// rich-text .richImg {
	// 	width: 100%;
	// 	height: auto;
	// }

</style>
